using UnityEngine;
using System.Collections;

[System.Serializable]
public class AnxietyLevel : MonoBehaviour {
	
	public Texture anxietyLevelLow;
	public Texture anxietyLevelMedium;
	public Texture anxietyLevelHigh;

	// Use this for initialization
	void Start () {
		
	}
	
	// Update is called once per frame
	void FixedUpdate () {
		if (Game.game.anxietyLevel > 10) {
			Game.game.anxietyLevel = 10;
		}
	}
	
	void OnGUI() {
		float width = 128;
		float height = 128;
		
		float x = (16);
		float y = (16);
		
		if (Game.game.anxietyLevel > 7) {
			GUI.DrawTexture(new Rect(x, y, width, height), anxietyLevelHigh);
		} else if (Game.game.anxietyLevel > 4) {
			GUI.DrawTexture(new Rect(x, y, width, height), anxietyLevelMedium);
		} else {
			GUI.DrawTexture(new Rect(x, y, width, height), anxietyLevelLow);
		}
	}
}
